package org.pp.admin.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class InfoUpdate {

    @Schema(description = "姓名/昵称")
    @NotBlank(message = "姓名/昵称不为空")
    private String name;

    @Schema(description = "手机号")
    @Pattern(regexp = "^$|^1\\d{10}$",message = "手机号格式错误")
    private String phone;
}
